package com.ninth_group.config;

import com.ninth_group.datasource.HiveDataSource;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



@Configuration
public class DataSourceConfig {
    /**
     * 创建hive数据源
     */
    @Bean
    @ConfigurationProperties(prefix = "spring.datasource")
    public HiveDataSource hiveDataSource() {
        return new HiveDataSource();
    }

}
